Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@evilork
evilork / xray-vless-reality-deployment-guide.md
Last active May 27, 2026 00:22
Как настроить свой VPN с VLESS Reality на VPS — полный гайд для России 2026

🛡 Развёртывание Xray-core с VLESS+Reality на VPS — полное руководство

Краткое описание — Пошаговая инструкция по развёртыванию open-source Xray-core с протоколом VLESS+Reality на VPS. Для DevOps-инженеров, разработчиков и системных администраторов которым нужен защищённый туннель между серверами или клиентами с активной DPI-классификацией трафика. Применимо для корпоративных VPN, удалённого администрирования, защиты IoT-инфраструктуры и mesh-сетей.

Обновлено: апрель 2026


📋 Содержание

@ejoliet
ejoliet / CLAUDE.md
Last active May 27, 2026 00:17
Minimal TAP 1.1 service — SQLite backend, 20 bright stars, IVOA-compliant

CLAUDE.md — Minimal TAP 1.1 Service

Agent briefing for continuing development of this codebase.


What This Is

A standards-compliant TAP 1.1 (Table Access Protocol) service per the IVOA spec. TAP is the standard VO protocol

@szydan
szydan / rosetta-mac-m3.md
Last active May 27, 2026 00:14
Run shell mac m1 m2 m3

Install roseta

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Create following aliase in .zshrc

alias arm="env /usr/bin/arch -arm64 /bin/zsh --login"
@kirankotari
kirankotari / in-place-merge-sort.py
Created April 17, 2019 12:24 — forked from m00nlight/gist:a076d3995406ca92acd6
Python merge sort in place, so space complexity is O(1)
import random
def merge_sort(xs):
"""Inplace merge sort of array without recursive. The basic idea
is to avoid the recursive call while using iterative solution.
The algorithm first merge chunk of length of 2, then merge chunks
of length 4, then 8, 16, .... , until 2^k where 2^k is large than
the length of the array
"""
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@jorwan
jorwan / macport_cheat_sheet.md
Last active May 27, 2026 00:12
MacPort Cheat Sheet

MacPort Cheat Sheet


Installing

Installing vim with macport
$ port install vim